package cn.gpdi.framework.iface;

import java.sql.Connection;
import java.util.List;
import java.util.Map;

public abstract interface IDAO
{
    public abstract Connection getConnection()
            throws Exception;

    public abstract Long count(String paramString, Map paramMap)
            throws Exception;


    public <T> T selectOne(
            String paramString, Object paramMap) throws Exception;

    public abstract List<Map<String, Object>> selectList(String paramString, Map paramMap)
            throws Exception;

    public abstract String sequence(String paramString)
            throws Exception;

    public abstract int delete(String paramString, Map paramMap)
            throws Exception;

    public abstract int insert(String paramString, Map paramMap)
            throws Exception;

    public abstract List<Map<String, Object>> select(String paramString, Map paramMap)
            throws Exception;

    public abstract int update(String paramString, Map paramMap)
            throws Exception;

    public abstract List<Map<String, Object>> querySQL(String paramString)
            throws Exception;


    public abstract  Object selectOneType(String s, Map paramMap)  throws Exception;
}